<template>
  <div>
    <p style="height:1px"></p>
    <el-container :style="{ height:heightpx }" style="margin-top:60px;">
      <el-aside width="230px">
        <DBSimpleMenu :navDatas="navMenus" :isCollapse="isCollapse"></DBSimpleMenu>
      </el-aside>
      <el-container>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import DBSimpleMenu from "../../components/SimpleMenu";
export default {
  data() {
    return {
      heightpx:this.Param.screenHeight-60 + 'px',
      isCollapse: false,
      navMenus: [
        {
          id: "1",
          index: "/dashbord",
          title: "dashbord",
          icon: "el-icon-location"
        },
        {
          id: "2",
          index:"2",
          title: "GC",
          icon: "",
          childs: [
            {
              id: "2-1",
              index: "gc",
              title: "gc",
              icon: ""
            },
            {
              id: "2-2",
              index: "2-2",
              title: "孩子2",
              icon: ""
            },
            {
              id: "2-3",
              index: "2-3",
              title: "孩子3",
              icon: ""
            }
          ]
        },
        {
          id: "3",
          index:"3",
          title: "人员管理",
          icon: "",
          childs: [
            {
              id: "3-1",
              index: "/users",
              title: "用户管理",
              icon: ""
            },
            {
              id: "3-2",
              index: "2-2",
              title: "孩子2",
              icon: ""
            },
            {
              id: "3-3",
              index: "2-3",
              title: "孩子3",
              icon: ""
            }
          ]
        }
      ]
    };
  },
  components: { DBSimpleMenu }
};
</script>

<style scoped>
.el-aside {
  background-color: #d3dce6;
  color: #333;
  /* text-align: center; */
  line-height: 200px;
  /* position: fixed; */
  height: 100%;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>